package com.boilerCloud.service.device.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boilerCloud.dao.device.DeviceDao;
import com.boilerCloud.dao.device.DeviceWarnDao;
import com.boilerCloud.dto.HzlqswPage;
import com.boilerCloud.dto.device.DeviceInfo;
import com.boilerCloud.dto.device.DeviceWarnInfo;
import com.boilerCloud.service.device.IDeviceService;
import com.boilerCloud.service.device.IDeviceWarnService;
@Service
public class DeviceWarnServiceImpl implements IDeviceWarnService {

	@Resource
	private DeviceWarnDao dao;
	
	@Override
	public void qryList(DeviceWarnInfo device, HzlqswPage<DeviceWarnInfo> page)throws Exception {
		dao.qryList(device,page);
		
	}

	@Override
	public void edit(DeviceInfo device)throws Exception {
		dao.edit(device);
		
	}

	@Override
	public void delDevice(int id)throws Exception {
		dao.del(id);
		
	}

	@Override
	public void addDevice(DeviceInfo device) throws Exception{
		// TODO Auto-generated method stub
		dao.add(device);
	}

	@Override
	public DeviceInfo getDeviceInfo(int id) throws Exception {
		// TODO Auto-generated method stub
		return dao.getDeviceInfo(id);
	}

	

}
